<?php if (!defined('THINK_PATH')) exit(); /*a:5:{s:107:"E:\WampServer\www\tp5-抢课系统\public/../application/backend\view\normal_administrator\course_list.html";i:1609831323;s:76:"E:\WampServer\www\tp5-抢课系统\application\backend\view\public\head.html";i:1609742375;s:75:"E:\WampServer\www\tp5-抢课系统\application\backend\view\public\top.html";i:1609689704;s:97:"E:\WampServer\www\tp5-抢课系统\application\backend\view\public\normal_administrator_menu.html";i:1609839138;s:82:"E:\WampServer\www\tp5-抢课系统\application\backend\view\public\background.html";i:1609743506;}*/ ?>
<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>学生选课系统</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="../../X-admin/css/font.css">
	<link rel="stylesheet" href="../../X-admin/css/xadmin.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/Swiper/3.4.2/css/swiper.min.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="https://cdn.bootcss.com/Swiper/3.4.2/js/swiper.jquery.min.js"></script>
    <script src="../../X-admin/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="../../X-admin/js/xadmin.js"></script>

</head>
<body>
    <!-- 顶部开始 -->
    <div class="container">
        <div class="logo"><a href="./index.html">学生选课后台管理系统</a></div>
        <div class="open-nav"><i class="iconfont">&#xe699;</i></div>
        <ul class="layui-nav right" lay-filter="">
          <li class="layui-nav-item">
            <a href="javascript:;">Administrator</a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
              <dd><a href="change_password">修改密码</a></dd>
              <dd><a href="logout">退出</a></dd>
            </dl>
          </li>
          <li class="layui-nav-item"><a href="/">前台首页</a></li>
        </ul>
    </div>
    <!-- 顶部结束 -->
    <!-- 中部开始 -->
    <div class="wrapper">
        <!-- 左侧菜单开始 -->
       <div class="left-nav">
          <div id="side-nav">
            <ul id="nav">
                <li class="list" current>
                    <a href="./index.html">
                        <i class="iconfont">&#xe761;</i>
                        欢迎页面
                        <i class="iconfont nav_right">&#xe697;</i>
                    </a>
                </li>
                <li class="list" >
                    <a href="course_list">
                        <i class="iconfont">&#xe761;</i>
                        课程信息
                        <i class="iconfont nav_right">&#xe697;</i>
                    </a>
                </li>
                <li class="list">
                    <a href="javascript:;">
                        <i class="iconfont">&#xe70b;</i>
                         课程管理
                        <i class="iconfont nav_right">&#xe697;</i>
                    </a>
                    <ul class="sub-menu opened">
                        <li class="current">
                            <a href="stu_courses_list">
                                <i class="iconfont">&#xe6a7;</i>
                                选课信息
                            </a>
                        </li>
                        <li class="current">
                            <a href="javascript:;" onclick="show('选择课程','course_select','4','510','300')">
                                <i class="iconfont">&#xe6a7;</i>
                               	学生选课
                            </a>
                        </li>
                        <li>
                            <a href="javascript:;" onclick="show('选择课程','course_exit','4','510','300')">
                                <i class="iconfont">&#xe6a7;</i>
                                学生退课
                            </a>
                        </li>
                    </ul>
                </li>
            </ul>
          </div>
        </div>
<script>
    // 用户-编辑
    function show (title,url,id,w,h) {
        x_admin_show(title,url,w,h);
    }
</script>
        <!-- 左侧菜单结束 -->
        <!-- 右侧主体开始 -->
        <div class="page-content">
          <div class="content">
            <!-- 右侧内容框架，更改从这里开始 -->
            <!--  
            <xblock>
            	<button class="layui-btn" onclick="dorm_add('添加宿舍','dorm_add.html','600','500')"><i class="layui-icon">&#xe608;</i>添加</button>
            </xblock>
            -->
            <table class="layui-table">
                <thead>
                    <tr>
                        <th>
                            <input type="checkbox" name="" value="">
                        </th>
                        <th>
                            课程编号
                        </th>
                        <th>
                            课程名称
                        </th>
                        <th>
                            课程时间
                        </th>
                        <th>
                            课程地点
                        </th>
                        <th>
                            可选人数
                        </th>
                    </tr>
                </thead>
                <tbody>
                	<?php if(is_array($lists) || $lists instanceof \think\Collection || $lists instanceof \think\Paginator): $i = 0; $__LIST__ = $lists;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v0): $mod = ($i % 2 );++$i;?>
                    <tr>
                    	<td>
                            <input type="checkbox" value="1" name="">
                        </td>
                        <td><?php echo $v0['course_id']; ?></td>
                        <td><?php echo $v0['course_name']; ?></td>
                        <td><?php echo $v0['course_time']; ?></td>
                        <td><?php echo $v0['course_place']; ?></td>
                        <td><?php echo $v0['course_nums']; ?></td>
                        <!--  
                        <td class="td-manage">
                            <a title="修改" href="javascript:;" onclick="dorm_edit('修改宿舍','dorm_edit.html','4','','510')"
                            class="ml-5" style="text-decoration:none">
                                <i class="layui-icon">&#xe642;</i>
                            </a>
                            <a title="删除" href="javascript:;" onclick="dorm_del(this,'1')" 
                            style="text-decoration:none">
                                <i class="layui-icon">&#xe640;</i>
                            </a>
                        </td>
                        -->
                    </tr>
                	<?php endforeach; endif; else: echo "" ;endif; ?>
                </tbody>
            </table>
            <!-- 右侧内容框架，更改从这里结束 -->
          </div>
        </div>
        <!-- 右侧主体结束 -->
    </div>
    <!-- 中部结束 -->
    <!-- 底部开始 -->
    <div class="footer">
        <div class="copyright">Copyright ©2017 x-admin v2.3 All Rights Reserved. 本后台系统由X前端框架提供前端技术支持</div>  
    </div>
    <!-- 底部结束 -->
    <!-- 背景切换开始 -->
    <div class="bg-changer">
    <div class="swiper-container changer-list">
        <div class="swiper-wrapper">
            <div class="swiper-slide"><img class="item" src="../../X-admin/images/a.jpg" alt=""></div>
            <div class="swiper-slide"><img class="item" src="../../X-admin/images/b.jpg" alt=""></div>
            <div class="swiper-slide"><img class="item" src="../../X-admin/images/c.jpg" alt=""></div>
            <div class="swiper-slide"><img class="item" src="../../X-admin/images/d.jpg" alt=""></div>
            <div class="swiper-slide"><img class="item" src="../../X-admin/images/e.jpg" alt=""></div>
            <div class="swiper-slide"><img class="item" src="../../X-admin/images/f.jpg" alt=""></div>
            <div class="swiper-slide"><img class="item" src="../../X-admin/images/g.jpg" alt=""></div>
            <div class="swiper-slide"><img class="item" src="../../X-admin/images/h.jpg" alt=""></div>
            <div class="swiper-slide"><img class="item" src="../../X-admin/images/i.jpg" alt=""></div>
            <div class="swiper-slide"><img class="item" src="../../X-admin/images/j.jpg" alt=""></div>
            <div class="swiper-slide"><img class="item" src="../../X-admin/images/k.jpg" alt=""></div>
            <div class="swiper-slide"><span class="reset">初始化</span></div>
        </div>
    </div>
    <div class="bg-out"></div>
    <div id="changer-set"><i class="iconfont">&#xe696;</i></div>
</div>
    <!-- 背景切换结束 -->
    <script>

        //批量删除提交
         function delAll () {
            layer.confirm('确认要删除吗？',function(index){
                //捉到所有被选中的，发异步进行删除
                
                layer.msg('删除成功', {icon: 1});
            });
         }
         /*用户-添加*/
        function dorm_add(title,url,w,h){
            x_admin_show(title,url,w,h);
        }
        /*用户-查看*/
        function dorm_show(title,url,id,w,h){
            x_admin_show(title,url,w,h);
        }
        // 用户-编辑
        function dorm_edit (title,url,id,w,h) {
            x_admin_show(title,url,w,h); 
        }
        /*用户-删除*/
        function dorm_del(obj,id){
            layer.confirm('确认要删除吗？',function(index){
                //发异步删除数据
                $(obj).parents("tr").remove();
                layer.msg('已删除!',{icon:1,time:1000});
            });
        }
        </script>
</body>
</html>